using System;
using System.Collections.Generic;
using NotifiableLinqTests.FrameWork;
using NUnit.Framework;

namespace LiveLinqTests
{
	[TestFixture]
	public class Where_notification_test : ItemNotificationTestsBase
	{
		static readonly Func<IItem, bool> _predicate = x => x.Width > CountMax / 2;

		public override object QuerySut(IEnumerable<IItem> source)
		{
			return LiveLinq.ObservableEnumerable.Where(source, _predicate);
		}

		public override object QueryActual(IEnumerable<IItem> source)
		{
			return System.Linq.Enumerable.Where(source, _predicate);
		}
		
		[Test]
		public void ExecuteTest()
		{
			base.ExecuteTestCore();
		}
	}
}